package com.csnf.demo1.service;

import com.csnf.demo1.entity.Student;

import java.util.List;

public interface StudentService {
    /**
     * 添加学生
     * @param student
     * @throws Exception
     */
    public Boolean addStudent(Student student) throws Exception;

    /**
     * 通过Id查询学生
     * @param id
     * @return
     * @throws Exception
     */
    public List<Student> getStudentById(Integer id) throws Exception;

    /**
     * 查询所有学生
     */
    List<Student> getAllStudent();
;
}


